﻿@model CMSMVC4.Areas.Admin.Models.EditBaneModel
@using CMSMVC4.MultiResource
<div class="box paint">
    @using (Ajax.BeginForm("Edit", "Baner", new AjaxOptions() { HttpMethod = "POST", UpdateTargetId = "dialog", OnSuccess = "show()" }))
    {
        <div class="modal" style="position: relative; top: auto; left: auto; margin: 0 auto 20px;
            z-index: 1; max-width: 100%;">
            <div class="modal-header">
                <button type="button" class="close1" data-dismiss="modal" aria-hidden="true">
                    ×</button>
                <h3 id="myModalLabel">
                    Modal Heading</h3>
            </div>
            <div class="modal-body">
                <div class="form-row control-group row-fluid">
                    <label class="control-label span3">@Admin.Url<span class="help-block">@Admin.Url</span>
                    </label>
                    <div class="controls span7">
                        <input type="text" value="@ViewBag.Url" class="span12" name="Url"/>
                    </div>
                </div>
                <div class="form-row control-group row-fluid">
                    <label class="control-label span3">@Admin.Images<span class="help-block">@Admin.Images</span>
                    </label>
                    <div class="controls span7">
                        <input type="text" value="@ViewBag.Name" class="span12" name="Name" id="chonanh"/>
                        <input onclick="chonlogo()" type="button" value="@Admin.InsertPhoto" />
                    </div>
                </div>
                <div class="form-row control-group row-fluid">
                    <label class="control-label span3">@Admin.PageL<span class="help-block">@Admin.PageL</span>
                    </label>
                    <div class="controls span7">
                        <select data-placeholder="Choose a Type Support..." class="chzn-select" name="Type">
                            <option value="-1"></option>
                            <option value="1">@Admin.GioiThieu</option>
                            <option value="3">@Admin.ThietBi</option>
                            <option value="2">@Admin.DichVu</option>
                            <option value="4">@Admin.TinTuc</option>
                            <option value="5">@Admin.DoiTac</option>
                            <option value="6">@Admin.LienHe</option>
                        </select>
                        <br />@Html.ValidationMessageFor(x => x.Type)
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <input type="button" class="btn" data-dismiss="modal" value="Close" onclick="hide()" />
                <input type="submit" class="btn btn-primary" value="Save changes" />
            </div>
        </div>
    }
</div>
<!-- End .content -->
<a class="btn change_color_outside"><i class="paint_bucket"></i></a>
<script language="javascript" type="text/javascript">
    $('.close1').click(function (e) {
        //hủy bỏ các link liên kết,"bỏ dấu #"
        //$("#myModal").addClass("hidden");
        e.preventDefault();
        //đóng thẻ dialog
        $("#dialog").fadeOut(500);
        //đóng thẻ nền dialog
        $("#dialog_nen").fadeOut(500);
    });
</script>
